import request from "../utils/request";

const user = {
  userLogin(params) {
    return request.get("/user/userLogin", {params: params});
  },
  updateUser2(data) {
    return request.post("/user/updateUser", data);
  },
  insertUser(data) {
    return request.post("/user/insertUser", data);
  },
  getOrderByuser_idX(params) {
    return request.get("/user/getOrderByuser_idX", {params: params});
  },
  getBuyer() {
    return request.get("/user/getBuyer");
  },
  getOrderByuser_idY(params) {
    return request.get("/user/getAllorderByuser_idY", {params: params});
  },
  insertUser_info(data) {
    return request.post("/user/insertUser_info", data);
  },
  getAlluserInfo(params) {
    return request.get("/user/getAlluserInfo", {params: params});
  },
  updateStatus1(data) {
    return request.post("/user/updateStatus1", data);
  },
  updateUserInfo2(data) {
    return request.post("/user/updateUserInfo", data);
  },
  deleteUser_info2(data) {
    return request.delete("/user/deleteUser_info", {data: data});
  }
}

export default user;
